﻿@using ZKEACMS
@using ZKEACMS.Message.Models
@model MessageEntity
@{
    Layout = Layouts.EmailLayout;
    string link = $"{hostOptionProvider.GetOrigin()}/admin/Comments/Edit/{Model.ID}";
    Func<string, string> L = localize.Get;
}
@inject ZKEACMS.IHostOptionProvider hostOptionProvider
@inject Easy.ILocalize localize
@inject ZKEACMS.Site.ISiteInformationService siteInformationService

<div>
    <h3>
        @localize.Get("New message")
    </h3>
    <table border="1" cellspacing="0" cellpadding="5" bgcolor="" style="border-color: #eee;">
        <tbody>
            <tr>
                <td>@localize.Get("Username")</td>
                <td>@Model.Title</td>
            </tr>
            <tr>
                <td>@localize.Get("Email")</td>
                <td>@Model.Email</td>
            </tr>
            <tr>
                <td>@localize.Get("Message")</td>
                <td>@Model.PostMessage</td>
            </tr>
        </tbody>
    </table>
    <br />
    @Html.EmailLinkButton(link, L("View"))
</div>